﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<cludg.Web.ViewModels.RegisterModel>" %>
<%@ Import Namespace="cludg.Web.Core.Captcha" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Регистрация
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
	<h2>Регистрация</h2>
	<% Html.EnableClientValidation(); %>
	<% using (Html.BeginForm())
	{%>
	<%: Html.ValidationSummary(true) %>
	<fieldset>
		<div class="editor-label">
			<%: Html.LabelFor(model => model.Name) %>
		</div>
		<div class="editor-field">
			<%: Html.TextBoxFor(model => model.Name) %>
			<%: Html.ValidationMessageFor(model => model.Name) %>
		</div>
		<div class="editor-label">
			<%: Html.LabelFor(model => model.Email) %>
		</div>
		<div class="editor-field">
			<%: Html.TextBoxFor(model => model.Email) %>
			<%: Html.ValidationMessageFor(model => model.Email) %>
		</div>
		<div class="editor-label">
			<%: Html.LabelFor(model => model.Password) %>
		</div>
		<div class="editor-field">
			<%: Html.PasswordFor(model => model.Password) %>
			<%: Html.ValidationMessageFor(model => model.Password) %>
		</div>
		<div class="editor-label">
			<%: Html.LabelFor(model => model.PasswordConfirm) %>
		</div>
		<div class="editor-field">
			<%: Html.PasswordFor(model => model.PasswordConfirm)%>
			<%: Html.ValidationMessageFor(model => model.PasswordConfirm) %>
		</div>
		<div>
			<label for="recaptcha_response_field">Введите слова на картинке</label>
			<%=Html.GenerateCaptcha()%>
			<%=Html.ValidationMessage("Captcha")%>
		</div>
		<p>
			<input type="submit" value="зарегистрироваться" />
		</p>
	</fieldset>
	<% } %>
</asp:Content>
